<volist name="balconys" id="vo">
    <a href="#" class="room-list text-12" data-id="{BEESCRM:$vo.balcony_id}">
        <div class="room-img">
            <img src="{BEESCRM:$vo.balcony_img}"/>
            <span class="label text-center">{BEESCRM:$vo.number}人桌</span>
        </div>
        <p class="text-center">{BEESCRM:$vo.balcony_name}
            <if condition="$hasOrderBalcony eq 0">
                <span class="iconfont  text-green"></span>
            </if>
            <if condition="$hasOrderBalcony eq 1">
                <if condition="$vo.balcony_id eq $balconyId">
                    <span class="iconfont icon-checked text-green"></span>
                    <else />
                    <span class="iconfont  text-green"></span>
                </if>

            </if>
        </p>
    </a>
</volist>

<script>
    $(function(){
        var img_w = $('.room-img').width();
        $('.room-img img').css('height',img_w);
    })
</script>